const goods = layui.data("goods");

axios.get(`http://localhost:9000/goods/item/${goods.id}`).then(res => {
	if (res.data.code === 1) {
		const goods = res.data.info;
		layui.$(".middleimg").attr("src", goods.img_big_logo);
		layui.$(".title").text(goods.title);
		layui.$(".old").text(goods.price);
		layui.$(".discount").text(goods.sale_type);
		layui.$(".curprice").text(goods.current_price);
		layui.$(".desc").html(goods.goods_introduce);
	}else{
    layui.layer.msg(res.code.message)
  }
});
